<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%ali_carinfo_get_log}}".
 *
 * @property int $id
 * @property int $status
 * @property string $url
 * @property string $request_file_url 文件链接
 * @property resource $request_base64
 * @property string $request_djzs_str 条形码字符串
 * @property string $request_fpzw_str 发票真伪二维码字符串
 * @property string $request_hgz_text 二维码未解码之前的密文
 * @property string $request_new_or_used
 * @property string $car_type 车辆类型
 * @property string $car_model 具体车型
 * @property string $vin 车架号
 * @property string $chisses_number 底盘号
 * @property string $engine_number 发动机号
 * @property string $car_color 车辆颜色
 * @property string $registration_certificate_number 登记证书号
 * @property string $initial_registration_time 初始登记时间
 * @property string $new_plate_number 新的车牌号
 * @property string $register_date 注册日期
 * @property string $license_driver 行驶证车主
 * @property string $invoice_created_date 发票开票日期
 * @property string $invoice_unit 发票开票单位
 * @property string $invoice_number 发票号
 * @property int $success
 * @property string $request_id
 * @property string $config_str 配置字符串信息
 * @property string $resp_body 响应信息
 * @property int $type 接口类型
 * @property string $o_id
 * @property int $uid
 * @property int $created_at
 * @property string $plate_num 车牌号码
 * @property string $vehicle_type 车辆类型
 * @property string $owner 所有人名称
 * @property string $use_character 使用性质
 * @property string $addr 地址
 * @property string $model 品牌型号
 * @property string $engine_num 发动机号码
 * @property string $issue_date 发证日期
 * @property string $appproved_passenger_capacity 核定载人数
 * @property string $approved_load 核定载质量
 * @property string $file_no 档案编号
 * @property string $gross_mass 总质量
 * @property string $inspection_record 检验记录
 * @property string $overall_dimension 外廓尺寸
 * @property string $traction_mass 准牵引总质量
 * @property string $unladen_mass 整备质量
 * @property string $RtnCode
 * @property string $resultCode
 * @property string $resultMsg
 * @property string $invoiceName
 * @property string $invoiceResult
 * @property string $invoicefalseCode
 * @property string $isFree
 * @property string $invoiceDataCode 发票代码
 * @property string $invoiceNumber 发票号码
 * @property string $billingTime 开票日期
 * @property string $machineCode 机打代码
 * @property string $checkCode 校验码 
 * @property string $result
 * @property string $ret_code
 * @property string $comment
 * @property string $data
 * @property string $Code
 * @property string $Message
 * @property string $RequsetId
 * @property string $fpdm 发票代码
 * @property string $fphm 发票号码
 * @property string $kprq 开票日期
 * @property string $jshe 价税合计
 * @property string $num 机打号码
 * @property string $xhdwmc 销货单位名称
 * @property string $xhdwmc_no 纳税人识别号
 * @property string $resp_status
 * @property string $raw_text 二维码解码内容
 * @property string $raw_type
 * @property int $console_check_times
 */
class AliCarinfoGetLog extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%ali_carinfo_get_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['status', 'success', 'type', 'uid', 'created_at', 'console_check_times'], 'integer'],
            [['request_base64', 'request_hgz_text', 'config_str', 'resp_body', 'invoiceResult', 'data', 'raw_text'], 'string'],
            [['o_id', 'uid', 'created_at'], 'required'],
            [['url', 'request_file_url', 'request_djzs_str', 'request_fpzw_str', 'request_new_or_used', 'car_type', 'car_model', 'vin', 'chisses_number', 'engine_number', 'car_color', 'registration_certificate_number', 'initial_registration_time', 'new_plate_number', 'register_date', 'license_driver', 'invoice_created_date', 'invoice_unit', 'invoice_number', 'request_id', 'o_id', 'plate_num', 'vehicle_type', 'owner', 'use_character', 'addr', 'model', 'engine_num', 'issue_date', 'appproved_passenger_capacity', 'approved_load', 'file_no', 'gross_mass', 'inspection_record', 'overall_dimension', 'traction_mass', 'unladen_mass', 'RtnCode', 'resultCode', 'resultMsg', 'invoiceName', 'invoicefalseCode', 'isFree', 'invoiceDataCode', 'invoiceNumber', 'billingTime', 'machineCode', 'checkCode', 'result', 'ret_code', 'comment', 'Code', 'Message', 'RequsetId', 'fpdm', 'fphm', 'kprq', 'jshe', 'num', 'xhdwmc', 'xhdwmc_no', 'resp_status', 'raw_type'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'status' => Yii::t('app', 'Status'),
            'url' => Yii::t('app', 'Url'),
            'request_file_url' => Yii::t('app', '文件链接'),
            'request_base64' => Yii::t('app', 'Request Base64'),
            'request_djzs_str' => Yii::t('app', '条形码字符串'),
            'request_fpzw_str' => Yii::t('app', '发票真伪二维码字符串'),
            'request_hgz_text' => Yii::t('app', '二维码未解码之前的密文'),
            'request_new_or_used' => Yii::t('app', 'Request New Or Used'),
            'car_type' => Yii::t('app', '车辆类型'),
            'car_model' => Yii::t('app', '具体车型'),
            'vin' => Yii::t('app', '车架号'),
            'chisses_number' => Yii::t('app', '底盘号'),
            'engine_number' => Yii::t('app', '发动机号'),
            'car_color' => Yii::t('app', '车辆颜色'),
            'registration_certificate_number' => Yii::t('app', '登记证书号'),
            'initial_registration_time' => Yii::t('app', '初始登记时间'),
            'new_plate_number' => Yii::t('app', '新的车牌号'),
            'register_date' => Yii::t('app', '注册日期'),
            'license_driver' => Yii::t('app', '行驶证车主'),
            'invoice_created_date' => Yii::t('app', '发票开票日期'),
            'invoice_unit' => Yii::t('app', '发票开票单位'),
            'invoice_number' => Yii::t('app', '发票号'),
            'success' => Yii::t('app', 'Success'),
            'request_id' => Yii::t('app', 'Request ID'),
            'config_str' => Yii::t('app', '配置字符串信息'),
            'resp_body' => Yii::t('app', '响应信息'),
            'type' => Yii::t('app', '接口类型'),
            'o_id' => Yii::t('app', 'O ID'),
            'uid' => Yii::t('app', 'Uid'),
            'created_at' => Yii::t('app', 'Created At'),
            'plate_num' => Yii::t('app', '车牌号码'),
            'vehicle_type' => Yii::t('app', '车辆类型'),
            'owner' => Yii::t('app', '所有人名称'),
            'use_character' => Yii::t('app', '使用性质'),
            'addr' => Yii::t('app', '地址'),
            'model' => Yii::t('app', '品牌型号'),
            'engine_num' => Yii::t('app', '发动机号码'),
            'issue_date' => Yii::t('app', '发证日期'),
            'appproved_passenger_capacity' => Yii::t('app', '核定载人数'),
            'approved_load' => Yii::t('app', '核定载质量'),
            'file_no' => Yii::t('app', '档案编号'),
            'gross_mass' => Yii::t('app', '总质量'),
            'inspection_record' => Yii::t('app', '检验记录'),
            'overall_dimension' => Yii::t('app', '外廓尺寸'),
            'traction_mass' => Yii::t('app', '准牵引总质量'),
            'unladen_mass' => Yii::t('app', '整备质量'),
            'RtnCode' => Yii::t('app', 'Rtn Code'),
            'resultCode' => Yii::t('app', 'Result Code'),
            'resultMsg' => Yii::t('app', 'Result Msg'),
            'invoiceName' => Yii::t('app', 'Invoice Name'),
            'invoiceResult' => Yii::t('app', 'Invoice Result'),
            'invoicefalseCode' => Yii::t('app', 'Invoicefalse Code'),
            'isFree' => Yii::t('app', 'Is Free'),
            'invoiceDataCode' => Yii::t('app', '发票代码'),
            'invoiceNumber' => Yii::t('app', '发票号码'),
            'billingTime' => Yii::t('app', '开票日期'),
            'machineCode' => Yii::t('app', '机打代码'),
            'checkCode' => Yii::t('app', '校验码 '),
            'result' => Yii::t('app', 'Result'),
            'ret_code' => Yii::t('app', 'Ret Code'),
            'comment' => Yii::t('app', 'Comment'),
            'data' => Yii::t('app', 'Data'),
            'Code' => Yii::t('app', 'Code'),
            'Message' => Yii::t('app', 'Message'),
            'RequsetId' => Yii::t('app', 'Requset ID'),
            'fpdm' => Yii::t('app', '发票代码'),
            'fphm' => Yii::t('app', '发票号码'),
            'kprq' => Yii::t('app', '开票日期'),
            'jshe' => Yii::t('app', '价税合计'),
            'num' => Yii::t('app', '机打号码'),
            'xhdwmc' => Yii::t('app', '销货单位名称'),
            'xhdwmc_no' => Yii::t('app', '纳税人识别号'),
            'resp_status' => Yii::t('app', 'Resp Status'),
            'raw_text' => Yii::t('app', '二维码解码内容'),
            'raw_type' => Yii::t('app', 'Raw Type'),
            'console_check_times' => Yii::t('app', 'Console Check Times'),
        ];
    }
}
